import request from '../request.js'

// 企业号获取公司详情
function getCorpDetail(query) {
	return request.get('/api/comm/getCorpDetail', query,false)
}

function getInvite(query) {
	return request.get('/api/comm/getInvite',query)
}

function inviteCorp() {
	return request.get('/api/comm/inviteCorp')
}

function inviteProject() {
	return request.get('/api/comm/inviteProject')
}

function genQrcode(query) {
	return request.get('/api/comm/genQrcode',query)
}
// 加入企业
function joinCorp(data) {
	return request.post('/api/corp/joinCorp', data)
}
// 项目基本信息
function getProjectDetail(data) {
	return request.get('/api/comm/getProjectDetail', data)
}
// 逆地址解析
function getGeocoder(data) {
	return request.get('/api/comm/getGeocoder', data)
}



export default {
    getCorpDetail,
	getInvite,
	inviteCorp,
	inviteProject,
	genQrcode,
	joinCorp,
	getCorpDetail,
	getProjectDetail,
	getGeocoder
}